﻿using System.Windows.Input;
using TestBat.IModels.Exceptions;
using TestBat.IViewModels.Dialogs;
using TestBat.ViewModels.Base.Commands;

namespace TestBat.ViewModels.Dialogs
{
    public class ValidationErrorDialogViewModel : DialogViewModel, IValidationErrorDialogViewModel
    {
        public ValidationErrorDialogViewModel(IValidationException exception)
        {
            Exception = exception;
        }

        public IValidationException Exception
        {
            get;
            private set;
        }

        public override ICommand CloseCommand
        {
            get
            {
                return new RelayCommand(e =>
                {
                    InvokeCloseEvent();
                });
            }
        }


    }
}
